package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 厂家管理对象 sys_factory
 * 
 * @author ruoyi
 * @date 2021-10-26
 */
public class SysFactory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Integer factoryId;

    /** 名称 */
    @Excel(name = "名称")
    private String factoryName;

    /** logo */
    @Excel(name = "logo")
    private String factoryLogo;

    /** 电话 */
    @Excel(name = "电话")
    private String factoryPhone;

    /** 地址 */
    @Excel(name = "地址")
    private String factoryAddress;

    /** 开始合作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始合作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date factoryStarttime;

    /** 结束合作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束合作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date factoryEndtime;

    public void setFactoryId(Integer factoryId) 
    {
        this.factoryId = factoryId;
    }

    public Integer getFactoryId() 
    {
        return factoryId;
    }
    public void setFactoryName(String factoryName) 
    {
        this.factoryName = factoryName;
    }

    public String getFactoryName() 
    {
        return factoryName;
    }
    public void setFactoryLogo(String factoryLogo) 
    {
        this.factoryLogo = factoryLogo;
    }

    public String getFactoryLogo() 
    {
        return factoryLogo;
    }
    public void setFactoryPhone(String factoryPhone) 
    {
        this.factoryPhone = factoryPhone;
    }

    public String getFactoryPhone() 
    {
        return factoryPhone;
    }
    public void setFactoryAddress(String factoryAddress) 
    {
        this.factoryAddress = factoryAddress;
    }

    public String getFactoryAddress() 
    {
        return factoryAddress;
    }
    public void setFactoryStarttime(Date factoryStarttime) 
    {
        this.factoryStarttime = factoryStarttime;
    }

    public Date getFactoryStarttime() 
    {
        return factoryStarttime;
    }
    public void setFactoryEndtime(Date factoryEndtime) 
    {
        this.factoryEndtime = factoryEndtime;
    }

    public Date getFactoryEndtime() 
    {
        return factoryEndtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("factoryId", getFactoryId())
            .append("factoryName", getFactoryName())
            .append("factoryLogo", getFactoryLogo())
            .append("factoryPhone", getFactoryPhone())
            .append("factoryAddress", getFactoryAddress())
            .append("factoryStarttime", getFactoryStarttime())
            .append("factoryEndtime", getFactoryEndtime())
            .toString();
    }
}
